Skip to content

Develop#361

Merged
guillermo-navas-palencia merged 30 commits intomasterfrom
develop
Oct 26, 2025
Merged

Develop#361
guillermo-navas-palencia merged 30 commits intomasterfrom
develop

Conversation

@guillermo-navas-palencia
Copy link
Owner

@guillermo-navas-palencia guillermo-navas-palencia commented Jul 10, 2025

Updates for version 0.21

jnsofini and others added 15 commits February 18, 2025 19:04
This method provide a similar functionality like the one we get with BinningProcess.transform(), but return the score contribution for each feature. Here is the link to the idea #345 (comment)

Here is an example of usage.

```python
        import pandas as pd
        from optbinning import Scorecard, BinningProcess
        from sklearn.datasets import load_breast_cancer
        data = load_breast_cancer()
        X_train = pd.DataFrame(
            data=data.data,
            columns=data.feature_names
        )
        y_train  = data.target

        model = Scorecard(
            binning_process=BinningProcess(variable_names=data.feature_names),
            estimator=LogisticRegression(random_state=34),
            rounding=True,
            scaling_method="min_max",
            scaling_method_params={"min": 0, "max": 250}
        )
        model.fit(X_train, y_train)

        print(model.transform(X_train.head()))
        ```
Added method to provide .transform to the Scorecard Class
Return expected number of values in compute_prebins for ContinuousOptimalBinning
Fix std in the summary statistics
Use weighted min_bin_size and max_bin_size when sample_weight provided
@guillermo-navas-palencia guillermo-navas-palencia added this to the v0.21.0 milestone Jul 10, 2025
@guillermo-navas-palencia guillermo-navas-palencia added bug Something isn't working enhancement New feature or request labels Jul 10, 2025
@guillermo-navas-palencia guillermo-navas-palencia merged commit 9705dce into master Oct 26, 2025
28 of 48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants